;(function () {
  'use strict';
  angular.module('controllers.faultLocation.failureLocation', [])
    .controller('failureLocationCtrl', failureLocationCtrl);
  function failureLocationCtrl($scope,CoreService){
  	var tabs = ['/found','/model','/notice'];
  	$scope.selectedIndex = CoreService.navgit(tabs);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = tabs.indexOf(state.url);
    });
    $scope.toggle = true;
    $scope.isResponded = true;
  }

  failureLocationCtrl.$inject = ['$scope', 'CoreService'];
})();